<template>
  <div class="app-container">
    <el-table key="id" :data="comment.list" fit highlight-current-row>
      <el-table-column label="序号" type="index"> </el-table-column>
      <el-table-column label="用户昵称" prop="nickname"> </el-table-column>

      <el-table-column label="用户头像">
        <template slot-scope="{ row }">
          <el-avatar :src="row.avatar"></el-avatar>
        </template>
      </el-table-column>

      <el-table-column label="留言内容" prop="content" show-overflow-tooltip>
      </el-table-column>

      <el-table-column label="喜欢" prop="likes_count"> </el-table-column>

      <el-table-column label="发布日期" prop="create_time"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: ["comment"],
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>
